import layoutHeaderAside from '@/layout/header-aside'

const meta = { auth: true }

export default {
  path: '/order',
  name: 'order',
  meta,
  redirect: { name: 'order-list' },
  component: layoutHeaderAside,
  children: (pre => [
    {
      path: 'list',
      name: `${pre}list`,
      component: () => import('@/pages/order/list'),
      meta: { ...meta, title: '订单列表' }
    },
    {
      path: 'detail/:id',
      name: `${pre}detail`,
      component: () => import('@/pages/order/detail'),
      meta: { ...meta, title: '订单详情' }
    }
  ])('order-')
}
